{extend name="admin@public:base" /}
{block name="main-row-content"}
<div class="page-header">
	<h1>
		当前操作
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			添加新闻
		</small>
	</h1>
</div><!-- /.page-header -->
<div class="row">
	<div class="col-xs-12">
		<!-- PAGE CONTENT BEGINS -->
			<div class="col-md-4">
                 <h4 class="header blue">
                  <i class="ace-icon fa fa-star orange"></i>
                  用户信息
                 </h4>
                 <div id="user-profile-1" class="user-profile row">
                     <div class="col-xs-12 center">
							<div>
								<!-- #section:pages/profile.picture -->
								<span class="profile-picture">
									<img id="avatar" class="editable img-responsive editable-click editable-empty" alt="Alex's Avatar" src="__STATIC__/hbb/image/nopic.jpg">
								</span>

								<!-- /section:pages/profile.picture -->
								<div class="space-4"></div>

								<div class="width-80 label label-info label-xlg arrowed-in arrowed-in-right">
									<div class="inline position-relative">
										<a href="#" class="user-title-label dropdown-toggle" data-toggle="dropdown">
											<i class="ace-icon fa fa-circle light-green"></i>
											&nbsp;
											<span class="white">超级管理员</span>
										</a>
									</div>
								</div>
							</div>

							<div class="space-6"></div>
							<div class="profile-user-info profile-user-info-striped">
								<div class="profile-info-row">
									<div class="profile-info-name"> 用户名： </div>

									<div class="profile-info-value">
										<span class="editable" id="username">admin</span>
									</div>
								</div>
				                <div class="profile-info-row">
									<div class="profile-info-name"> 联系电话： </div>

									<div class="profile-info-value">
										<span class="editable" id="login">	15515704092</span>
									</div>
								</div>

								<div class="profile-info-row">
									<div class="profile-info-name"> 上次登录时间： </div>

									<div class="profile-info-value">
										<span class="editable" id="city">2018-03-30</span>
									</div>
								</div>

				                <div class="profile-info-row">
									<div class="profile-info-name"> 本次登录IP： </div>

									<div class="profile-info-value">
										<span class="editable" id="city">192.168.1.1</span>
									</div>
								</div>
 								<div class="profile-info-row">
									<div class="profile-info-name"> 登录次数： </div>

									<div class="profile-info-value">
										<span class="editable" id="city">32</span>
									</div>
								</div>								

							</div>
						</div>
				  </div>
			</div>
			<div class="col-md-8">
                 <h4 class="header blue">
                  <i class="ace-icon fa fa-star orange"></i>
                  信息设置
                 </h4>
                 <form class="form-horizontal ajaxForm2" action="{:url('admin/Sys/admin_runedit')}" method="post">
			    <input type="hidden" name="id" value="{$admin.id}">
				<div class="space-4"></div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="form-field-1">用户名：</label>
					<div class="col-sm-10">
						<input type="text"  name="username" value="{$admin.username}" placeholder="用户名" class="col-xs-4" required/>
						<div class="col-sm-5 help-block"><i class="fa fa-info-circle color-info1"></i> 必填（由字母数字组成）</div>
					</div>
				</div>
				<div class="space-4"></div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="form-field-1">真实姓名：</label>
					<div class="col-sm-10">
						<input type="text"  value="{$admin.truename}" name="truename" placeholder="真实姓名" class="col-xs-6" required/>
						<div class="col-sm-5 help-block"><i class="fa fa-info-circle color-info1"></i> 必填（真实姓名）</div>
					</div>
				</div>
				<div class="space-4"></div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="form-field-1"><span class="middle red">*</span>登陆密码：</label>
					<div class="col-sm-10">
						<input type="text"  name="password" autocomplete="off" placeholder="密码" class="col-xs-4" onfocus="this.type='password';" />
						<div class="col-sm-5 help-block"><i class="fa fa-info-circle color-info1"></i>密码为空表示不修改</div>
					</div>
				</div>
	            <div class="space-4"></div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 性别：  </label>
					<div class="col-sm-10">
						<label>
							<input name="sex" type="radio" value="1" {$admin.sex?'checked':''} class="ace">
							<span class="lbl"> 男 </span>&nbsp;&nbsp;
						</label>
						<label>
							<input name="sex" type="radio" {$admin.sex?'':'checked'}  value="0" class="ace">
							<span class="lbl"> 女 </span>
						</label>
					</div>
				</div>
	            <div class="space-4"></div>
	            <div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="form-field-1">电话：</label>
					<div class="col-sm-10">
						<input type="text"  value="{$admin.tel}" name="tel" placeholder="电话" class="col-xs-6" required/>
					</div>
				</div>
				<div class="space-4"></div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="form-field-2">邮箱：</label>

					<div class="col-sm-10">
						<input type="text"  value="{$admin.email}" name="email" placeholder="邮箱" class="col-xs-10 col-sm-6" required />
					</div>
				</div>
				<div class="space-4"></div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="form-field-1">头像：</label>
					<div class="col-sm-10">
					    <div class="col-sm-2">
							<a href="javascript:;" class="file">
								<input name="avatar" id="img_upload" type="file">
								<i class="fa fa-cloud-upload "></i>上传头像
							</a>
						</div>
						<div class="col-sm-10 help-block"><i class="fa fa-info-circle color-info1"></i> 用于用户头像</div>
						<div class="file_img_show col-sm-12">
						    <div class="img col-xs-2" id="show_upload_img">
						      <i class="ace-icon fa fa-times red remove_upload_img"></i>
						      <img src="{$admin.avatar|get_img}" alt="">
						    </div>
						</div>
					</div>
				</div>
				<div class="space-4"></div> 
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 状态： </label>
					<div class="col-sm-10" style="padding-top:5px;">
						<input name="status" value="1" {$admin.status?"checked":""} class="ace ace-switch ace-switch-6" type="checkbox">
						<span class="lbl">&nbsp;&nbsp;默认关闭</span>
					</div>
				</div>
				<div class="space-4"></div>
				<div class="clearfix">
					<div class="col-md-offset-3 col-md-9 ">
						<button class="btn btn-info btn-sm btn-radius" type="submit">
							<i class="ace-icon fa fa-check bigger-110"></i>
							提交并保存
						</button>

						&nbsp; &nbsp; &nbsp;
						<button class="btn btn-success btn-sm btn-radius" type="submit">
							<i class="ace-icon fa fa-undo bigger-110"></i>
							重置
						</button>
					</div>
				</div>
			</form>	
			</div>
			</div>		
	</div><!-- /.col -->
</div><!-- /.row -->
{/block}
{block name="script"}
<script type="text/javascript">

</script>
{/block}